using System.ComponentModel.DataAnnotations;
using System.Data.Entity.ModelConfiguration;
using Planisoft.Entities;


namespace Planisoft.DAO.Mapping
{
    public class TipoDocumentoIdMap : EntityTypeConfiguration<TipoDocumentoId>
    {
        public TipoDocumentoIdMap()
        {
            // Primary Key
            this.HasKey(t => t.IdTipoDocumento);

            // Properties
            this.Property(t => t.CodPdtTipoDoc)
                .HasMaxLength(10);

            // Table & Column Mappings
            this.ToTable("TipoDocumentoId");
            this.Property(t => t.IdTipoDocumento).HasColumnName("IdTipoDocumento");
            this.Property(t => t.CodPdtTipoDoc).HasColumnName("CodPdtTipoDoc");
            this.Property(t => t.DescTipDoc).HasColumnName("DescTipDoc");
        }
    }
}
